home *** CD-ROM | disk | FTP | other *** search
- diff -c fileutils-2.0/src/cat.c fileutils-2.0-st/src/cat.c
- *** fileutils-2.0/src/cat.c Thu Jun 6 12:54:07 1991
- --- fileutils-2.0-st/src/cat.c Thu Jun 13 00:28:39 1991
- ***************
- *** 217,223 ****
- --- 217,227 ----
-
- /* Get device, i-node number, and optimal blocksize of output. */
-
- + #if !defined(atarist) /* (sjk)++ */
- if (fstat (output_desc, &stat_buf) < 0)
- + #else
- + if (stat ("CON:",&stat_buf) < 0)
- + #endif
- error (1, errno, "standard output");
-
- outsize = ST_BLKSIZE (stat_buf);
- diff -c fileutils-2.0/src/cmp.c fileutils-2.0-st/src/cmp.c
- *** fileutils-2.0/src/cmp.c Sun Jun 2 15:42:10 1991
- --- fileutils-2.0-st/src/cmp.c Thu Jun 13 00:29:05 1991
- ***************
- *** 216,222 ****
- --- 216,226 ----
- {
- nulldev = sb.st_dev;
- nullino = sb.st_ino;
- + #if !defined(atarist) /* (sjk)++ */
- if (fstat (1, &sb) == 0
- + #else
- + if (stat ("CON:",&sb) == 0
- + #endif
- && sb.st_dev == nulldev && sb.st_ino == nullino)
- comparison_type = type_status;
- }
- diff -c fileutils-2.0/src/cp.c fileutils-2.0-st/src/cp.c
- *** fileutils-2.0/src/cp.c Mon Jun 3 16:55:32 1991
- --- fileutils-2.0-st/src/cp.c Thu Jun 13 00:48:08 1991
- ***************
- *** 735,741 ****
- --- 735,745 ----
- {
- struct utimbuf utb;
-
- + #if !defined(atarist) /* (sjk)++ */
- utb.actime = src_sb.st_atime;
- + #else
- + utb.axtime = src_sb.st_atime;
- + #endif
- utb.modtime = src_sb.st_mtime;
-
- if (utime (dst_path, &utb))
- ***************
- *** 946,952 ****
- --- 950,960 ----
- {
- struct utimbuf utb;
-
- + #if !defined(atarist) /* (sjk)++ */
- utb.actime = src_sb.st_atime;
- + #else
- + utb.axtime = src_sb.st_atime;
- + #endif
- utb.modtime = src_sb.st_mtime;
-
- if (utime (dst_path, &utb))
- ***************
- *** 1093,1098 ****
- --- 1101,1111 ----
- /* If the file has fewer blocks than would normally
- be needed for a file of its size, then
- at least one of the blocks in the file is a hole. */
- +
- + #if defined(atarist)
- + #define DEV_BSIZE 512
- + #endif
- +
- if (S_ISREG (sb.st_mode) &&
- sb.st_size - (sb.st_blocks * DEV_BSIZE) >= DEV_BSIZE)
- make_holes = 1;
- diff -c fileutils-2.0/src/install.c fileutils-2.0-st/src/install.c
- *** fileutils-2.0/src/install.c Sun Jun 2 15:42:28 1991
- --- fileutils-2.0-st/src/install.c Thu Jun 13 00:29:49 1991
- ***************
- *** 79,86 ****
- --- 79,88 ----
- void endpwent ();
- void endgrent ();
-
- + #if !defined(atarist) /* (sjk)++ */
- /* True if C is an ASCII octal digit. */
- #define isodigit(c) ((c) >= '0' && c <= '7')
- + #endif
-
- /* Number of bytes of a file to copy at a time. */
- #define READ_SIZE (32 * 1024)
- ***************
- *** 375,382 ****
- error (1, errno, "cannot fork");
- break;
- case 0: /* Child. */
- ! execlp ("strip", "strip", path, (char *) NULL);
- ! error (1, errno, "cannot run strip");
- break;
- default: /* Parent. */
- /* Parent process. */
- --- 377,384 ----
- error (1, errno, "cannot fork");
- break;
- case 0: /* Child. */
- ! execl ((char *)getenv("STRIP"), "strip", path, (char *) NULL);
- ! error(1, errno, "cannot run strip");
- break;
- default: /* Parent. */
- /* Parent process. */
- ***************
- *** 394,399 ****
- --- 396,402 ----
- struct passwd *pw;
- struct group *gr;
-
- + #if !defined(atarist) /* (sjk)++ */
- if (owner_name)
- {
- pw = getpwnam (owner_name);
- ***************
- *** 425,430 ****
- --- 428,435 ----
- }
- else
- group_id = getgid ();
- + #endif
- +
- }
-
- /* Return nonzero if STR is an ASCII representation of a nonzero
- diff -c fileutils-2.0/src/mv.c fileutils-2.0-st/src/mv.c
- *** fileutils-2.0/src/mv.c Sun Jun 2 15:42:37 1991
- --- fileutils-2.0-st/src/mv.c Thu Jun 13 00:49:02 1991
- ***************
- *** 403,409 ****
- --- 403,413 ----
- {
- struct utimbuf tv;
-
- + #if !defined(atarist) /* (sjk)++ */
- tv.actime = from_stats.st_atime;
- + #else
- + tv.axtime = from_stats.st_atime;
- + #endif
- tv.modtime = from_stats.st_mtime;
- if (utime (to, &tv))
- {
- diff -c fileutils-2.0/src/system.h fileutils-2.0-st/src/system.h
- *** fileutils-2.0/src/system.h Fri Jun 7 21:49:41 1991
- --- fileutils-2.0-st/src/system.h Thu Jun 13 00:34:17 1991
- ***************
- *** 54,61 ****
- --- 54,63 ----
- #include <unistd.h>
- #include <limits.h>
- #ifndef PATH_MAX
- + #if !defined(atarist) /* (sjk)++ */
- #define PATH_MAX pathconf ("/", _PC_PATH_MAX)
- #endif
- + #endif
- #else
- #ifdef USG
- #include <sys/times.h>
- ***************
- *** 66,74 ****
- --- 68,79 ----
- #endif
-
- #ifndef _POSIX_PATH_MAX
- + #if !defined(atarist) /* (sjk)++ */
- #define _POSIX_PATH_MAX 255
- #endif
- + #endif
-
- + #if !defined(atarist) /* (sjk)++ */
- #ifndef PATH_MAX
- #ifdef MAXPATHLEN
- #define PATH_MAX MAXPATHLEN
- ***************
- *** 76,85 ****
- --- 81,93 ----
- #define PATH_MAX _POSIX_PATH_MAX
- #endif
- #endif
- + #endif
-
- #ifdef _POSIX_SOURCE
- + #if !defined(atarist) /* (sjk)++ */
- #define major(dev) (((dev) >> 8) & 0xff)
- #define minor(dev) ((dev) & 0xff)
- + #endif
- #define makedev(maj, min) (((maj) << 8) | (min))
- #else
- #ifdef USG
- ***************
- *** 90,95 ****
- --- 98,104 ----
- #ifdef POSIX
- #include <utime.h>
- #else
- + #if !defined(atarist) /* (sjk)++ */
- struct utimbuf
- {
- long actime;
- ***************
- *** 96,101 ****
- --- 105,111 ----
- long modtime;
- };
- #endif
- + #endif
-
- #if defined(USG) || defined(STDC_HEADERS)
- #include <string.h>
- ***************
- *** 107,113 ****
- #include <strings.h>
- #endif
-
- ! #if defined(USG) || defined(POSIX)
- #ifndef F_OK
- /* Args for access. */
- #define F_OK 0
- --- 117,123 ----
- #include <strings.h>
- #endif
-
- ! #if defined(USG) || defined(POSIX) || defined(atarist) /* (sjk)++ */
- #ifndef F_OK
- /* Args for access. */
- #define F_OK 0
- ***************
- *** 155,161 ****
- ST_BLKSIZE: Optimal I/O blocksize for the file, in bytes.
- ST_NBLOCKS: Number of 512-byte blocks in the file
- (including indirect blocks). */
- ! #ifdef _POSIX_SOURCE
- #define ST_BLKSIZE(statbuf) 512
- #define ST_NBLOCKS(statbuf) (((statbuf).st_size + 512 - 1) / 512)
- #else
- --- 165,171 ----
- ST_BLKSIZE: Optimal I/O blocksize for the file, in bytes.
- ST_NBLOCKS: Number of 512-byte blocks in the file
- (including indirect blocks). */
- ! #if defined(_POSIX_SOURCE) || defined(atarist) /* (sjk)++ */
- #define ST_BLKSIZE(statbuf) 512
- #define ST_NBLOCKS(statbuf) (((statbuf).st_size + 512 - 1) / 512)
- #else
- diff -c fileutils-2.0/src/tac.c fileutils-2.0-st/src/tac.c
- *** fileutils-2.0/src/tac.c Sun Jun 2 15:42:51 1991
- --- fileutils-2.0-st/src/tac.c Thu Jun 13 00:34:36 1991
- ***************
- *** 221,227 ****
- --- 221,231 ----
- Use fstat instead of checking for errno == ESPIPE because
- lseek doesn't work on some special files but doesn't return an
- error, either. */
- + #if !defined(atarist) /* (sjk)++ */
- if (fstat (0, &stats))
- + #else
- + if (stat("CON:",&stats))
- + #endif
- {
- error (0, errno, "standard input");
- return 1;
- diff -c fileutils-2.0/src/touch.c fileutils-2.0-st/src/touch.c
- *** fileutils-2.0/src/touch.c Sun Jun 9 01:34:13 1991
- --- fileutils-2.0-st/src/touch.c Thu Jun 13 00:51:49 1991
- ***************
- *** 285,298 ****
- --- 285,312 ----
-
- if (use_ref)
- {
- + #if !defined(atarist) /* (sjk)++ */
- utb.actime = ref_stats.st_atime;
- + #else
- + utb.axtime = ref_stats.st_atime;
- + #endif
- utb.modtime = ref_stats.st_mtime;
- }
- else
- +
- + #if !defined(atarist)
- utb.actime = utb.modtime = newtime;
- + #else
- + utb.axtime = utb.modtime = newtime;
- + #endif
-
- if (!(change_times & CH_ATIME))
- +
- + #if !defined(atarist) /* (sjk)++ */
- utb.actime = sbuf.st_atime;
- + #else
- + utb.axtime = sbuf.st_atime;
- + #endif
-
- if (!(change_times & CH_MTIME))
- utb.modtime = sbuf.st_mtime;
-